package com.github.dengmin.mysql.shiro;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import java.util.List;

/**
 * @Author dengmin
 * @Created 2020/8/17 上午10:50
 */
@Data
@ConfigurationProperties(prefix = "shiro")
public class ShiroProperties {
    private static final long serialVersionUID = 1L;
    //是否启用
    private boolean enable;

    /**
     * 路径权限配置
     */
    private String filterChainDefinitions;

    /**
     * 无需权限的路径集合
     */
    private List<String[]> anon;

    /**
     * 权限配置集合
     */
    @NestedConfigurationProperty
    private List<ShiroPermissionProperties> permission;
}
